The Accordion Pane Component > FAccordionPane.getItemAt() |
FAccordionPane.getItemAt()
Availability
Flash Player 6.
Usage
myAccordion_acp.getItemAt (index)
Parameters
index A number specifying the index of the item that should be returned.
Returns
Returns an object containing two properties, label and linkage, which contains information about the specified section.
Description
Returns an object containing two properties, label and linkage, which contains information about the specified section.
Example
The following code adds 4 sections to the component, and then get the item at index 2 and traces its label.
var sections = ["Section 1","Section 2","Section 3","Section 4"];
myAccordionPane_acp.setDataProvider(sections);
var item = myAccordionPane_acp.getItemAt(2);
trace("Item Label: "+item.label); //traces "Item Label: Section 3"
See also
FAccordionPane.getDataProvider()
FAccordionPane.setDataProvider()